import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index/Index'
import Search from '@/pages/search/Search'
import Order from '@/pages/order/Order'
import AboutUs from '@/pages/about_us/AboutUs'
import UserCenter from '@/pages/user_center/UserCenter'
import Pay from '@/pages/pay/Pay'
import PayDetail from '@/pages/pay_detail/PayDetail'
import PayResult from '@/pages/pay_result/PayResult'
import Ident from '@/pages/ident/Ident'
import Login from '@/pages/login/Login'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/order',
      name: 'Order',
      component: Order
    },
    {
      path: '/about_us',
      name: 'AboutUs',
      component: AboutUs
    },
    {
      path: '/user_center',
      name: 'UserCenter',
      component: UserCenter
    },
    {
      path: '/pay',
      name: 'Pay',
      component: Pay
    },
    {
      path: '/pay_detail',
      name: 'PayDetail',
      component: PayDetail
    },
    {
      path: '/pay_result',
      name: 'PayResult',
      component: PayResult
    },
    {
      path: '/ident',
      name: 'Ident',
      component: Ident
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    }
  ]
})
